package com.test.test_rest.miner_pool.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperMarketData implements Serializable {
    private Integer id;

    /**
     * 交易对
     */
    private String symbol;

    /**
     * 行情价格
     */
    private BigDecimal amount;

    private Date updateTime;

    private String image;

    private String name;

    /**
     * 日期
     */
    private String dayStr;

    private String json;

    private BigDecimal amountDiff;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 交易对
     */
    public String getSymbol() {
        return symbol;
    }

    /**
     * 交易对
     */
    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    /**
     * 行情价格
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 行情价格
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 日期
     */
    public String getDayStr() {
        return dayStr;
    }

    /**
     * 日期
     */
    public void setDayStr(String dayStr) {
        this.dayStr = dayStr;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public BigDecimal getAmountDiff() {
        return amountDiff;
    }

    public void setAmountDiff(BigDecimal amountDiff) {
        this.amountDiff = amountDiff;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", symbol=").append(symbol);
        sb.append(", amount=").append(amount);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", image=").append(image);
        sb.append(", name=").append(name);
        sb.append(", dayStr=").append(dayStr);
        sb.append(", json=").append(json);
        sb.append(", amountDiff=").append(amountDiff);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperMarketData other = (SuperMarketData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSymbol() == null ? other.getSymbol() == null : this.getSymbol().equals(other.getSymbol()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getDayStr() == null ? other.getDayStr() == null : this.getDayStr().equals(other.getDayStr()))
            && (this.getJson() == null ? other.getJson() == null : this.getJson().equals(other.getJson()))
            && (this.getAmountDiff() == null ? other.getAmountDiff() == null : this.getAmountDiff().equals(other.getAmountDiff()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSymbol() == null) ? 0 : getSymbol().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getDayStr() == null) ? 0 : getDayStr().hashCode());
        result = prime * result + ((getJson() == null) ? 0 : getJson().hashCode());
        result = prime * result + ((getAmountDiff() == null) ? 0 : getAmountDiff().hashCode());
        return result;
    }
}